'use strict';
exports = module.exports = function($scope) {
    $scope.signupForm = function(){
        $scope.fm.submitted = true;
        if( $scope.fm.$invalid ){
            alert(123);
        }
        return false;
    };
    $scope.clicksubmit = function(){
        $scope.fm.submitted = true;
        if( $scope.fm.$invalid ){
            alert("error");
        }
    };

    $scope.obj2 = {
        o01:"",o02:"",o03:"",o04:"",o05:"",o06:"",o07:"",o08:"",o09:"",o10:"",
        o11:"",o12:"",o13:"",o14:"",o15:"",o16:"",o17:"",o18:"",o19:"",o20:"",
        o21:"",o22:"",o23:"",o24:"",o25:"",o26:"",o27:"",o28:"",o29:"",o30:""
    };
    $scope.notBlackListed = function(value) { return ['bad@domain.com','verybad@domain.com'].indexOf(value) === -1; }
}